package com.sl.au.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 开票登记表
 * Created by RX on 2016/11/22.
 */
@Entity
@Table(name="sl_crm_paymentRegist")
public class PaymentRegist extends Root{
    /** 开票金额 */
    @Column(name="nPaymentSum")
    private float paymentSum;
    /** 税金 */
    @Column(name="nTaxes")
    private float taxes;
    /** 税率 */
    @Column(name="nTaxRate")
    private int taxRate;
    /** 开票时间 */
    @Column(name="dPaymentDate")
    private Date paymentDate;
    /** 开票人 */
    @Column(name="sPaymentMan")
    private String paymentMan;
    /** 开票人ID */
    @Column(name="sPaymentManID")
    private String paymentManID;
    /** 确认是否收入 */
    @Column(name="sIsIncome")
    private String isInIncome;
    /** 备注 */
    @Column(name="sMemo")
    private String memo;
    /** 合同Id */
    @Column(name="sContractId")
    private String contractId;
    /** 合同类型 */
    @Column(name="sContractType")
    private String contractType;
    /**
     * user_id(创建人id)
     */
    @ManyToOne
    @JoinColumn(unique = false)
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public float getPaymentSum() {
        return paymentSum;
    }

    public void setPaymentSum(float paymentSum) {
        this.paymentSum = paymentSum;
    }

    public float getTaxes() {
        return taxes;
    }

    public void setTaxes(float taxes) {
        this.taxes = taxes;
    }

    public Date getPaymentDate() {
        return paymentDate;
    }

    public void setPaymentDate(Date paymentDate) {
        this.paymentDate = paymentDate;
    }

    public String getPaymentMan() {
        return paymentMan;
    }

    public void setPaymentMan(String paymentMan) {
        this.paymentMan = paymentMan;
    }

    public String getIsInIncome() {
        return isInIncome;
    }

    public void setIsInIncome(String isInIncome) {
        this.isInIncome = isInIncome;
    }

    public int getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(int taxRate) {
        this.taxRate = taxRate;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getPaymentManID() {
        return paymentManID;
    }

    public void setPaymentManID(String paymentManID) {
        this.paymentManID = paymentManID;
    }
}
